<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Modeling</title>
{:importCSS("template.css|style.css|person.css|person-profile.css|person-case.css|font.css")}
{:importJS("jquery.min.js|input.js|signup.js")}
</head>
<body>
<include file="public:header" />
<div class="main center clearfix">
	<div class="leftbox">
    	<include file="userleftinfo" />
        <div class="clear"></div>
        <include file="usermenu" />
	</div>
    
    <div class="rightbox">
    	<a href="{:U('/space/case')}"><div class="button addnew">{:L('PERSON_CASE_EXISTENT_CASE')}</div></a>
    	<a href="{:U('/space/case-new')}"><div class="button addnew now">{:L('PERSON_CASE_ADD_NEW_CASE')}</div></a>
        <div class="clear"></div>
        <form method=post>
        <div class="inputbox">
    		<div class="box namebox">
    			<div class="inputword">{:L('WORK_NAME')}</div><input type="text" id="name" name="name" value="{$case.name|h}" onfocus="setStyleOne(this.id)" onblur="setStyleTwo(this.id)" /> <!--  onkeyup="value=value.replace(/[^\w\.\/]/ig,'')"-->
    		</div>
            <div class="clear"></div>
            <div class="box typebox">
        		<div class="inputword">{:L('CONTRACTOR_TYPE')}</div>
            	<div id="dropDownList1" class="dropDownList dropdown">
  					<select class="hide" name="type">
                    	<option>{:L('WORK_PLEASE_SELECT')}</option>
   						<php> $cgtype = M("cgtype")->order("`order` asc")->select();</php>
	                    <volist name="cgtype" id="data">
	   					<option value="{$data.id}" {:(($data['id']==$case['type'])?"selected":"")}>{:L($data['cgtypename'])}</option>
	   					</volist>
  					</select>
  					<span class="">{:($case['type']?L(M("cgtype")->getFieldById($case['type'],"cgtypename")):L('WORK_PLEASE_SELECT'))}</span>
            		<ul class="">
            		</ul>
        		</div>
    		</div>
            <div class="clear"></div>
            <div class="box skill com">
            	<div class="inputword ">{:L('CONTRACTOR_SKILLS')}</div><input type="hidden" name="skill" id="skill_data" value="{$case.skill}" />
	    		<div style="margin-left: 150px;">
	    		<include file="public:skilleditor" />
	    		</div>
    			<!--<div class="inputword">SKILLS</div>-->
    		</div>
            <div class="clear"></div>
            <div class="box cycle">
    			<div class="inputword">{:L('PERSON_DEVELOPEMENT_CYCLE')}</div><input type="text" id="cycle" name="cycle" value="{$case.cycle|h}" onfocus="setStyleOne(this.id)" onblur="setStyleTwo(this.id)"  onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" /> <div class="inputword">　{:L('PERSON_CASE_WORK_DAYS')}</div>
    		</div>
        	<div class="clear"></div>
            <div class="box budbox">
    			<div class="inputword">{:L('CONTRACTOR_BUDGET')}</div><input type="text" id="budget" name="budget" value="{$case.budget|h}" onfocus="setStyleOne(this.id)" onblur="setStyleTwo(this.id)"  onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" />
    		</div>
            <div class="clear"></div>
            <div class="box">
    			<div class="inputword">{:L('PERSON_CASEINTRO')}</div><textarea type="text" id="intro" name="intro" onfocus="if(value=='{:L('PERSON_CASEPROJECTINTRO')}'){value=''}; setStyleOne(this.id)" onblur="if(value==''){ value='{:L('PERSON_CASEPROJECTINTRO')}' }; setStyleTwo(this.id)">{:($case["intro"]?h($case["intro"]):L('PERSON_CASEPROJECTINTRO'))}</textarea>
    		</div>
            <div class="clear"></div>
            <a href="javascript:void(0)" onclick="return $('form').submit();"><div class="button pubbutton">{:L('PERSON_PUBLISH')}</div></a>
            <div class="clear"></div>
        </div>
        <input type="hidden" name="_submit" value="1" />
        </form>
    </div>
    
</div>
<include file="public:footer" />
{:importJS("downlist.js")}
</body>
</html>
